<%@page import="domain.model.InOutLink"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Collections"%>
<%@page import="javax.cache.CacheException"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="javax.cache.Cache"%>
<%@page import="domain.model.Whois"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html;charset=UTF-8" language="java"%>
<%
String ip = (String) request.getAttribute("ip");
String title = (String) request.getAttribute("title");
String description = (String) request.getAttribute("description");
String keywords = (String) request.getAttribute("keyword");
List<InOutLink> inlink = (List<InOutLink>) request.getAttribute("inlink");
List<InOutLink> outlink = (List<InOutLink>) request.getAttribute("outlink");
String domain = (String) request.getAttribute("domain");
%>
<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keywords %>"/>
</jsp:include>
		<div class="bd al">
			<div class="bdl l">

				<h1 class="tt">Check cross link ?</h1>
				<form action="/search-link" class="sea">
					<input type="text" name="name"/>
					<button>Check link</button>
					<br/>
					Example Searches : <a href="/link/google.com">google.com</a> , <a href="/link/youtube.com">youtube.com</a>
				</form>
				<br/>
					<h2 class="td"><%=domain %> </h2>
					<br/>
					<h2 class="ol">Out link  ( <a href="/link-out/<%=domain %>">View all</a> )</h2>
					<ul class="oll">
						<%
						for(int i=0;i<outlink.size();i++)
						{
						%>
							<li>
								<a href="/redirect/<%=outlink.get(i).getOutLink() %>" target="_blank" rel="nofollow" class="l">http://<%=outlink.get(i).getOutLink() %></a>
								<a class="r" href="/link/<%=outlink.get(i).getOutLink() %>">Check link</a>
								<a href="/domain/<%=outlink.get(i).getOutLink() %>" class="r">View infomation  |&nbsp;</a>
								<div class="cl"></div>
							</li>
						<%
						}
						%>
					</ul>
					<hr size="1"/>
					<h2 class="ol">In link  ( <a href="/link-in/<%=domain %>">View all</a> )</h2>
					<ul class="oll">
						<%
						for(int i=0;i<inlink.size();i++)
						{
						%>
							<li>
								<a href="/redirect/<%=inlink.get(i).getInLink() %>" target="_blank" rel="nofollow" class="l">http://<%=inlink.get(i).getInLink() %></a>
								<a class="r" href="/link/<%=inlink.get(i).getOutLink() %>">Check link</a>
								<a href="/domain/<%=inlink.get(i).getInLink() %>" class="r">View infomation  |&nbsp;</a>
								<div class="cl"></div>
							</li>
						<%
						}
						%>
					</ul>
			</div>
			<div class="bdr r">
				<h2>Your ip : <font><%=ip %></font></h2>
				<%@ include file='/adv/right250.jsp'%>
				<%@ include file='/element/menu_left.jsp'%>
			</div>
			<div class="cl"></div>
		</div>
<%@ include file='/layout/footer.jsp'%>